function arrSum(arr){
     sum=0;
    for (var i in arr)
    sum=sum+arr[i]
    return sum
    }
    di=[1,2,3,4,5,6]
    console.log(arrSum(id));